<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <%@include file="/WEB-INF/views/include/weixinhead.jsp" %>
    <%--<script src="${ctxStatic}/modules/wechat/js/startupManagement.js"></script>--%>
</head>
<body>
<!--创业-->
<div data-role="page" id="starup" class="page" >
    <div data-role="header" class="header header-1">创业
        <span class="return-btn"><a href="/f/campusinfo/homepage" data-ajax="false" data-transition="slideup"><img src="${ctxStatic}/modules/wechat/css/images/yuanjiaojuxing25.png" alt=""></a></span>
        <span><a href="/f/campusinfo/startupFundManagement" data-ajax="false" data-transition="slideup"><span>创业资金管理</span></a></span>
    </div>
    <div role="main" class="content-1">
        <div class="msg-content">
        </div>
        <iframe id="Loading" src="/f/campusinfo/LoadingOfResources" style="width: 100%;height:42px;" frameborder="0"></iframe>
        <iframe id="complete" src="/f/campusinfo/completeLoadingOfResources" frameborder="0" style="width: 100%;height:42px;"></iframe>
        <iframe id="errorLoad" src="/f/campusinfo/errorLoadingResources" frameborder="0" style="width: 100%;height:42px;display: none"></iframe>
    </div>
</div>
<script>
    $(document).ready(function () {

        $.ajax({
            url:interfaceStartup+generateMixed(9),
            type:'post',
            success:function (data) {
                if(data.success){
                    $("#Loading").hide();  //隐藏“加载中”提示
                    $("#complete").show();  //显示“加载完成”提示
                    for(var i=0;i<data.page.length;i++){
                        if(data.page[i].creatStype=='自带项目'){
                            if(!data.page[i].creatImg){
                                data.page[i].creatImg='${ctxStatic}/modules/wechat/css/images/cy-img.png'
                            }
                            $(".msg-content").eq(0).append('<a href="/f/campusinfo/startupByoProject?id='+data.page[i].id+'" data-ajax="false">' +
                                '            <div class="msg-div">\n' +
                                '                <div class="msg-content-left">\n' +
                                '                    <div class="msg-div-title">'+data.page[i].creatStype+'</div>\n' +
                                '                    <div class="msg-div-text-special">'+data.page[i].creatShort+'</div>\n' +
                                '                </div>\n' +
                                '                <img onerror="this.onerror=\'\';src=\'${ctxStatic}/modules/wechat/css/images/cy-img.png\'" src="${imgIp}'+data.page[i].creatImg+'" alt="">\n' +
                                '            </div>\n' +
                                '            </a>');
                        }else if(data.page[i].creatStype=='园区项目'){
                            $(".msg-content").eq(0).append('<a href="/f/campusinfo/startupOfferProject?id='+data.page[i].id+'" data-ajax="false">' +
                                '            <div class="msg-div">\n' +
                                '                <div class="msg-content-left">\n' +
                                '                    <div class="msg-div-title">'+data.page[i].creatStype+'</div>\n' +
                                '                    <div class="msg-div-text-special">'+data.page[i].creatShort+'</div>\n' +
                                '                </div>\n' +
                                '                <img onerror="this.onerror=\'\';src=\'${ctxStatic}/modules/wechat/css/images/cy-img.png\'" src="${imgIp}'+data.page[i].creatImg+'" alt="">\n' +
                                '            </div>\n' +
                                '            </a>');
                        }
                    }
                }
            },
            error:function () {
                $("#Loading").hide();  //隐藏“加载中”提示
                $("#complete").hide();  //隐藏“加载完成”提示
                $("#errorLoad").show();  //显示“加载失败”

            }
        })
    })
</script>
</body>
</html>